package com.eastfair.venuebooking.api;

import com.eastfair.core.base.R;
import com.eastfair.venuebooking.vo.ExhibitionSpaceVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 展会场地 feign.
 *
 * @author dqq
 * @date 2022 /7/22
 */
@FeignClient(value = "venue-booking/exhibitionSpace")
public interface ExhibitionSpaceFeign {

    /**
     * 展会ID查询展会场地
     *
     * @param exhibitionId the exhibition id
     * @return the r
     */
    @GetMapping("/exhibition/{exhibitionId}")
    R<List<ExhibitionSpaceVO>> queryByExhibitionId(@PathVariable("exhibitionId") Long exhibitionId);
}